package com.yjr.gulimall.order.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class HelloController {

    /**
     * 用于测试各个页面是否能正常访问
     * http://order.gulimall.com/confirm.html
     * http://order.gulimall.com/detai.html
     * http://order.gulimall.com/list.html
     * http://order.gulimall.com/pay.html
     */
    @GetMapping("/{page}.html")
    public String listPage(@PathVariable("page") String page){
        return page;
    }
}
